package com.sigmatrix.h5.service.db;

import java.util.List;

import org.springframework.stereotype.Service;

import com.sigmatrix.h5.entity.v2.DisRole;
import com.sigmatrix.h5.mapper.DisRoleMapper;
import com.sigmatrix.h5.service.v2.CommonDBService;


@Service
public class DisRoleDBService extends CommonDBService<DisRoleMapper, DisRole> {
	
	/**
	 * 根据用户Id获取所有的角色
	 * 
	 * @param acctId 用户Id
	 * @return List
	 */
	public List<DisRole> findByAcctId(Long acctId){
		return baseMapper.findByAcctId(acctId);
	}
	/**
	 * 获取管理员角色
	 * 
	 * @return  DisRole
	 */
	public DisRole findAdmin() {
		return baseMapper.findAdmin();
	}

}
